package com.epfresh.bean;

import java.util.List;

/**
 * Created by wzh on 16-7-14.
 */
public class OfferMarkBean {

    /**
     * marketId : 2
     * marketName : 四季鲜
     * productList : [{"storeName":"小美店","moq":300,"productPackageSize":"150克/袋","productChargeUnit":"袋","productId":12913,"productCount":356,"wholeSaleMarketId":2,"productTitle":"上海白玉菇150g","productUnitPrice":0.02,"wholeSaleMarketName":"四季鲜","productImgUrl":"http://imgtest.epfresh.com/2018%2F6%2F13%2F1528871600847_%E7%99%BD%E7%8E%89%E8%8F%87.jpg-PRODUCTTHUMBNAIL","incr":1,"storeId":813}]
     */

    private String marketId;
    private String marketName;
    private List<ProductListBean> productList;
    private boolean isSelect = false;

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getMarketName() {
        return marketName;
    }

    public void setMarketName(String marketName) {
        this.marketName = marketName;
    }

    public List<ProductListBean> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductListBean> productList) {
        this.productList = productList;
    }

    public static class ProductListBean {
        /**
         * storeName : 小美店
         * moq : 300
         * productPackageSize : 150克/袋
         * productChargeUnit : 袋
         * productId : 12913
         * productCount : 356
         * wholeSaleMarketId : 2
         * productTitle : 上海白玉菇150g
         * productUnitPrice : 0.02
         * wholeSaleMarketName : 四季鲜
         * productImgUrl : http://imgtest.epfresh.com/2018%2F6%2F13%2F1528871600847_%E7%99%BD%E7%8E%89%E8%8F%87.jpg-PRODUCTTHUMBNAIL
         * incr : 1
         * storeId : 813
         */
        private boolean isSelectStored;


        public void releaseSelect() {
            setSelect(isSelectStored);
        }
        public boolean isSelectStored() {
            return isSelectStored;
        }

        public void setSelectStored(boolean selectStored) {
            isSelectStored = selectStored;
        }

        public void storedSelect() {
            isSelectStored = isSelect();
            setSelect(false);
        }


        private int isSelected = 0;
        public boolean isSelect() {
            return isSelected == 1;
        }

        public void setSelect(boolean select) {
            if (select) {
                isSelected = 1;
            } else {
                isSelected = 0;
            }
        }

        public int getIsSelected() {
            return isSelected;
        }

        public void setIsSelected(int isSelected) {
            this.isSelected = isSelected;
        }

        private String storeName;
        private Double moq;
        private String productPackageSize;
        private String productChargeUnit;
        private String productId;
        private Double productCount;
        private String wholeSaleMarketId;
        private String productTitle;
        private double productUnitPrice;
        private String wholeSaleMarketName;
        private String productImgUrl;
        private Double incr;
        private String storeId;


        //新增字段
        private int specId;
        public int getSpecId() {
            return specId;
        }

        public void setSpecId(int specId) {
            this.specId = specId;
        }



        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public Double getMoq() {
            return moq;
        }

        public void setMoq(Double moq) {
            this.moq = moq;
        }

        public String getProductPackageSize() {
            return productPackageSize;
        }

        public void setProductPackageSize(String productPackageSize) {
            this.productPackageSize = productPackageSize;
        }

        public String getProductChargeUnit() {
            return productChargeUnit;
        }

        public void setProductChargeUnit(String productChargeUnit) {
            this.productChargeUnit = productChargeUnit;
        }

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public Double getProductCount() {
            return productCount;
        }

        public void setProductCount(Double productCount) {
            this.productCount = productCount;
        }

        public String getWholeSaleMarketId() {
            return wholeSaleMarketId;
        }

        public void setWholeSaleMarketId(String wholeSaleMarketId) {
            this.wholeSaleMarketId = wholeSaleMarketId;
        }

        public String getProductTitle() {
            return productTitle;
        }

        public void setProductTitle(String productTitle) {
            this.productTitle = productTitle;
        }

        public double getProductUnitPrice() {
            return productUnitPrice;
        }

        public void setProductUnitPrice(double productUnitPrice) {
            this.productUnitPrice = productUnitPrice;
        }

        public String getWholeSaleMarketName() {
            return wholeSaleMarketName;
        }

        public void setWholeSaleMarketName(String wholeSaleMarketName) {
            this.wholeSaleMarketName = wholeSaleMarketName;
        }

        public String getProductImgUrl() {
            return productImgUrl;
        }

        public void setProductImgUrl(String productImgUrl) {
            this.productImgUrl = productImgUrl;
        }

        public Double getIncr() {
            return incr;
        }

        public void setIncr(Double incr) {
            this.incr = incr;
        }

        public String getStoreId() {
            return storeId;
        }

        public void setStoreId(String storeId) {
            this.storeId = storeId;
        }
    }
}
